package com.zjh.rocketmq.consumer;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

@Component
@RocketMQMessageListener(consumerGroup = "deer_message_push", topic = "topic1")
public class RocketMqConsumer implements RocketMQListener {
    @Override
    public void onMessage(Object o) {
        System.out.println("收到的消息为 ================================================: " + o);
    }
}
